package com.xishu.entity.customer;

import com.xishu.annotation.dao.DefaultValue;
import com.xishu.annotation.lang.Lang;
import com.xishu.entity.AbstractEntity;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;

import javax.persistence.*;

@Api(description = "VIP付费模式")
@Entity(name = "vip_renew_mode")
@Table(indexes = {@Index(columnList = "companyId")})
public class VipRenewMode extends AbstractEntity {
    @ApiModelProperty(value = "公司ID")
    private Long companyId;

    @ApiModelProperty(value = "原价")
    private Double originCost;

    @ApiModelProperty(value = "执行价")
    private Double realCost;

    @ApiModelProperty(value = "付费周期, 1是按年，2是按月")
    @DefaultValue(defaultValue = "1")
    private Integer period;

    @ApiModelProperty(value = "自动续费提醒")
    @DefaultValue(defaultValue = "false")
    private Boolean remind;

    @ApiModelProperty(value = "说明")
    @Lang(key = "desc")
    @Lob
    @Column(columnDefinition = "MEDIUMTEXT")
    private String desc_zh;

    @ApiModelProperty(value = "说明")
    @Lang(key = "desc")
    @Lob
    @Column(columnDefinition = "MEDIUMTEXT")
    private String desc_en;

    @ApiModelProperty(value = "vip banner 图片")
    private String vipBanner;

    @ApiModelProperty(value = "vip 功能是否启用")
    private Boolean vipEnable;

    public Boolean getVipEnable() {
        return vipEnable;
    }

    public void setVipEnable(Boolean vipEnable) {
        this.vipEnable = vipEnable;
    }

    public String getVipBanner() {
        return vipBanner;
    }

    public void setVipBanner(String vipBanner) {
        this.vipBanner = vipBanner;
    }

    public String getDesc_zh() {
        return desc_zh;
    }

    public void setDesc_zh(String desc_zh) {
        this.desc_zh = desc_zh;
    }

    public String getDesc_en() {
        return desc_en;
    }

    public void setDesc_en(String desc_en) {
        this.desc_en = desc_en;
    }

    public Long getCompanyId() {
        return companyId;
    }

    public void setCompanyId(Long companyId) {
        this.companyId = companyId;
    }

    public Double getOriginCost() {
        return originCost;
    }

    public void setOriginCost(Double originCost) {
        this.originCost = originCost;
    }

    public Double getRealCost() {
        return realCost;
    }

    public void setRealCost(Double realCost) {
        this.realCost = realCost;
    }

    public Integer getPeriod() {
        return period;
    }

    public void setPeriod(Integer period) {
        this.period = period;
    }

    public Boolean getRemind() {
        return remind;
    }

    public void setRemind(Boolean remind) {
        this.remind = remind;
    }
}
